package com.itheima.edu.info.manager.day10;

import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.stream.IntStream;
import java.util.stream.Stream;

public class StringLiu {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9,9,9,9,9,10};
        int[] arr1 = {1, 2, 3, 4, 5, 6, 7, 8, 9,9,9,9,9,10};
      //  Stream stream = (Stream) Arrays.stream(arr);
//        stream.forEach(s -> System.out.println(s));
   //     Stream stream1 = (Stream) Arrays.stream(arr);
//        stream1.filter(s->s<10).distinct().skip(10);
//        Stream.concat(Arrays.stream(arr), Arrays.stream(arr1))
       IntStream.concat(Arrays.stream(arr),
               Arrays.stream(arr1)).
               forEach(s-> System.out.println(s));
        System.out.println("sssss");
    }

}
